﻿using System;
using System.Text;

namespace dotHTML.HTML {
    /// <summary>
    /// Represents a quotation.
    /// </summary>
    [Serializable]
    public class Q : Element {
        private string _cite;

        /// <summary>
        /// Determines the URL that this quotation came from.
        /// </summary>
        public string Cite {
            get { return _cite; }
            set { _cite = value; }
        }

        /// <summary>
        /// Gets a formatted string of all child elements of this element.
        /// </summary>
        /// <param name="sb">The StringBuilder to write this element's child
        /// data to.</param>
        protected override void WriteLocalAttributes(StringBuilder sb) {
            AttributeWriter.Write(sb, _cite, "cite");
        }
    }
}
